package com.liang.springcloud.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @Author:liangli
 * @Date:2020/11/11 21:21
 */
//实体类 orm 类表关系映射
@Data
@NoArgsConstructor
@Accessors(chain = true) //链式写法
public class Dept implements Serializable {

    private Long deptno;//主键

    private String dname;//部门名称

    private String db_source;//这个数据存在那个数据库

    public Dept(String dname) {
        this.dname = dname;
    }
}
